﻿CREATE TABLE dbo.SensorTelegram
(
  Id int IDENTITY(1,1) NOT NULL,
  SensorId bigint NOT NULL,
  HSEQ tinyint NOT NULL,
  ORG tinyint NOT NULL,
  Data0 tinyint NOT NULL,
  Data1 tinyint NOT NULL,
  Data2 tinyint NOT NULL,
  Data3 tinyint NOT NULL,
  Status tinyint NOT NULL,
  Created datetimeoffset(7) NOT NULL,
  primary key(Id),
  foreign key(SensorId) references Sensor(Id)
)
